#!/usr/bin/env python

import sys
import pandas as pd
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt

tsv_path = sys.argv[1]

df = pd.read_csv(tsv_path,
                 sep='\t',
                 names=['timestamp', 'long', 'short'],
                 parse_dates=True,
                 dtype={'timestamp': int})
df['timestamp'] = pd.to_datetime(df['timestamp'])
df = df.set_index('timestamp')

plt.figure(figsize=(100, 50))
plt.plot(df)
plt.savefig('output.png')
